package com.xc.quickstart.mq.producer;

import com.aliyun.openservices.ons.api.Producer;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;


@Component
@Slf4j
public class SampleMqProducer extends BaseMqProducer {

    @Autowired
    private Producer producer;


    @Override
    public Producer getProducer() {
        return producer;
    }

    @Override
    public String getTopic() {
        return "T_DISTRIBUTE_CHANGED";
    }

    @Override
    protected String getProducerName() {
        return "Sample消息发送";
    }
}
